import request from '@/utils/request'

// 查询消防救援衔列表
export function listFireRescueRank(query) {
  return request({
    url: '/fireRescueRank/fireRescueRank/list',
    method: 'get',
    params: query
  })
}

// 查询消防救援衔详细
export function getFireRescueRank(rescueRankId) {
  return request({
    url: '/fireRescueRank/fireRescueRank/' + rescueRankId,
    method: 'get'
  })
}

// 新增消防救援衔
export function addFireRescueRank(data) {
  return request({
    url: '/fireRescueRank/fireRescueRank',
    method: 'post',
    data: data
  })
}

// 修改消防救援衔
export function updateFireRescueRank(data) {
  return request({
    url: '/fireRescueRank/fireRescueRank',
    method: 'put',
    data: data
  })
}

// 删除消防救援衔
export function delFireRescueRank(rescueRankId) {
  return request({
    url: '/fireRescueRank/fireRescueRank/' + rescueRankId,
    method: 'delete'
  })
}
